How to encode video to use HTML 5 video tag? [closed]

Posted by exquisitor on Server Fault See other posts from Server Fault or by exquisitor
Published on 2009-08-04T13:43:09Z Indexed on 2012/06/27 21:19 UTC
Read the original article Hit count: 125

Filed under:
|
|
|

I'm trying to use <video> tag feature. I've encoded my file with ffmpeg:

ffmpeg -i 1.vob -f ogg -vcodec libtheora -b 800k -g 300 -acodec libvorbis -ab 128k out.ogv

I've placed this text in index.html:
<video src="out.ogv" controls></video>

I've loaded this files to nginx document root and opened index.html in Firefox 3.5. I see the first frame, see controls, but can't play video. This video plays good even from my server.

How should I encode video to view it in browser?

UPD:

If I start playing video from the middle, everything works fine.

© Server Fault or respective owner

Related posts about video

Related posts about streaming